package com.txx.design.principles.openclose;

public class JavaCourse implements  ICourse{

    public int id;
    public double price;
    public String name;

    public JavaCourse(int id, double price, String name) {
        this.id = id;
        this.price = price;
        this.name = name;
    }

    @Override
    public int getId() {
        return this.id;
    }

    @Override
    public double getPrice() {
        return this.price;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
